package com.mars.test;

import com.alibaba.druid.filter.config.ConfigTools;

public class GeneratorDruidPassword {

	public static void main(String[] args) throws Exception {
		String password = "123456" ;
		
		String[] arr = ConfigTools.genKeyPair(512) ;
		System.out.println("privateKey:" + arr[0]);
        System.out.println("publicKey:" + arr[1]);
        System.out.println("password:" + ConfigTools.encrypt(arr[0], password));
		
		
	}
	
}
